global Controls_within i.vex_req i.agency i.agency_n_req_per_day

*Requests received at most 15 days before treatment 
gen valid_15=1 if bet_treated_and_received>-16 & date_response > agency_first_treated 

*Requests received at most 25 days before treatment 
gen valid_25=1 if bet_treated_and_received>-26 & date_response > agency_first_treated

**###Panel A

foreach var of global all_DV {	
	qui reg `var' bet_treated_and_received $Controls_within if sample==1 & case_2==1 & bet_treated_and_received>-16 & valid_15==1, robust
	distinct agency if e(sample)==1
est store `var'

}

esttab business_w5 comply complete business_days_within_15 business_days_within_25 business_days_15 business_days_25 using "$Tables/Table_5_a.tex",  replace  label ///
keep(bet_treated_and_received) b(%5.3f) se(%5.3f) star(* 0.10 ** 0.05 *** 0.01)  mlabels("Business days" "Replied in time"  "Complete answer" "Replied within 15 bd" "Replied within 25 bd" "Replied in 15 bd" "Replied in 25 bd")  refcat(bet_treated_and_received  "\vspace{-6mm}", nolabel) stats(N r2,  labels(`"Observations"' `"R-squared"', prefix(\addlinespace[3pt])) fmt( %10.0fc %10.3fc 0 0) )  coeflabels($labels)   nonumber nonote compress noomitted nobaselevels 


#delimit ;
global Note_Table_5 "
{\begin{minipage}{1.5\textwidth}
\small  
\vspace{0.2cm} 
\textit{Notes:} * p $math < $math 0.10, ** p $math < $math 0.05, *** p $math < $math 0.01. We estimate the spillover effect of the redesigned notice on requests received with the old notices, which were the same as those the control group kept receiving. Robust standard errors are shown in parentheses. Only requests that were still pending when a redesigned notification arrived at the agency are included (Case II in Figure A3). Control variables include:  agency fixed effects, serial requesters, and number of requests received by the agency on the day request \$ i \$ arrived.   
 \end{minipage}
 }
";
#delimit cr

**###Panel B

foreach var of global all_DV {	
	qui reg `var' bet_treated_and_received $Controls_within if sample==1 & case_2==1 & bet_treated_and_received>-26 & valid_25==1, robust
	distinct agency if e(sample)==1
est store `var'

}

esttab business_w5 comply complete business_days_within_15 business_days_within_25 business_days_15 business_days_25 using "$Tables/Table_5_b.tex",  replace  label ///
keep(bet_treated_and_received) b(%5.3f) se(%5.3f) star(* 0.10 ** 0.05 *** 0.01)  mlabels("Business days" "Replied in time"  "Complete answer" "Replied within 15 bd" "Replied within 25 bd" "Replied in 15 bd" "Replied in 25 bd")  refcat(bet_treated_and_received  "\vspace{-6mm}", nolabel) stats(N r2,  labels(`"Observations"' `"R-squared"', prefix(\addlinespace[3pt])) fmt( %10.0fc %10.3fc 0 0) )  coeflabels($labels) addnote($Note_Table_5)  nonumber nonote compress noomitted nobaselevels 
